package dnl.dtools.grm.remote;

class HostAndUserPair {
	private String host;

	private String user;

	public HostAndUserPair(String host, String user) {
		super();
		this.host = host;
		this.user = user;
	}

	@Override
	public boolean equals(Object obj) {
		if(!(obj instanceof HostAndUserPair))
			return false;
		HostAndUserPair other = (HostAndUserPair) obj;
		return host.equals(other.host) && user.equals(other.user);
	}

	@Override
	public int hashCode() {
		return host.hashCode()^user.hashCode();
	}
	
}
